// 枚举状态码
enum Code {
    SUCCESS = 3000,
    DENIED,
    ERROR
}

enum CodeMessage {
    SUCCESS = '请求成功',
    DENIED = '无权限',
    ERROR = '系统异常'
}

// 状态类型 只能是Code中所枚举的状态
type codeType = keyof typeof Code

export {
    Code,
    codeType,
    CodeMessage
}